### variables:
$wallpaper = ~/.local/share/wallpaper/wallpaper.jpg

### autostart
exec-once = waybar --config ~/.config/waybar/config.hyprland.jsonc
exec-once = swaybg -i $wallpaper -m fill
exec-once = dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland MOZ_DBUS_REMOTE
exec-once = autostartctl boot
# exec-once = nm-applet

### includes
source = screen.conf
source = env.conf
source = binds.conf

### plugins
# exec-once = ~/.hyprland/plugins/load.sh
# exec-once = hyprpm reload
# source = plugins.conf

input {
    kb_layout    = us,ru
    kb_options   = grp:caps_toggle
    follow_mouse = 1
    # sensitivity  = 0
    repeat_delay = 300
    repeat_rate  = 50
}

general {
    gaps_out = 10
    gaps_in  = 8

    border_size = 2

    col.active_border   = rgb(349cc3)
    col.inactive_border = rgb(1a1a1a)

    # layout = master
    layout = dwindle
}

decoration {
    rounding = 0

    blur {
        enabled           = yes
        size              = 8
        passes            = 3
        ignore_opacity    = yes
        new_optimizations = yes
    }

    shadow {
        enabled      = yes
        range        = 8
        render_power = 2
        color          = rgba(060606EE)
    }
}

group {
    col.border_active   = rgb(ae903b)
    col.border_inactive = rgba(ae903b40)

    groupbar {
        font_family  = Iosevka Custom
        font_size    = 10
        col.active   = rgb(ae903b)
        col.inactive = rgba(ae903b80)
        height       = 16
    }
}

animations {
    enabled = yes

    animation = workspaces,  1, 3, default, slide

    animation = windows,     1, 2, default, popin 90%
    animation = windowsIn,   1, 2, default, popin 90%
    animation = windowsMove, 1, 2, default, slide
    
    animation = fade,        1, 4, default
    
    animation = border,      1, 4, default
}

dwindle {
    pseudotile     = no
    preserve_split = yes
}

master {
    new_status     = master
    # no_gaps_when_only = 1
}

misc {
    disable_hyprland_logo = true
}

ecosystem {
    no_update_news = true
}

### window rules
windowrule = float, class:qemu
windowrule = float, class:mpv
windowrule = float, class:imv
windowrule = float, class:virt-manager
windowrule = float, class:nm-connection-editor
windowrule = float, class:xdg-desktop-portal-gtk
windowrule = float, class:org.keepassxc.KeePassXC
windowrule = float, class:swayimg

windowrule = opacity 0.8, floating:1 focus:0
windowrule = bordercolor rgb(df715a), xwayland:1

windowrule = opaque, class:LibreWolf title:Картинка в картинке
windowrule = opaque, class:mpv|imv
windowrule = opaque, fullscreen:1

windowrule = rounding 8, class:vesktop title:vesktop
windowrule = rounding 10, class:Rofi
windowrule = rounding 6, floating:1
windowrule = rounding 0, class:mpv|imv
# windowrule = workspace 10, class:com.obsproject.Studio
